//
//  UIViewController+HUD.h
//  YBInsurance
//
//  Created by S2 on 12/25/15.
//  Copyright © 2015 YB. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^CallBack) (void);

@interface UIViewController (HUD)

/**
 *  @brief  会隐藏的HUD
 */
- (void)showHUDWith:(NSString *)text showView:(UIView *)showView;

/**
 *  @brief  带菊花的HUD
 */
- (void)showLoadingHUD:(NSString *)text showView:(UIView *)showView;



- (void)delay:(CGFloat)duration action:(CallBack)callBack;

- (void)hideHUD:(UIView *)view;

@end
